//
//  CoreConstraintHelper.h
//  OneStoreFramework
//
//  Created by Aimy on 14-7-1.
//  Copyright (c) 2014年 OneStore. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface CoreConstraintHelper : NSObject

/**
 *  设置view的大小同父view大小
 *
 *  @param aSuperview 父view
 *  @param aView      需要设置的view
 */
+ (void)setView:(UIView *)aView
fullAsSuperview:(UIView *)aSuperview;

/*  设置view的大小同父view大小
*
*  @param aSuperview 父view
*  @param aView      需要设置的view
*  @param aInsets    相对于父view的缩进
*/
+ (void)setView:(UIView *)aView
fullAsSuperview:(UIView *)aSuperview
  andEdgeInsets:(UIEdgeInsets)aInsets;

/*  设置view的大小同父view大小
 *
 *  @param aSuperview 父view
 *  @param aView      需要设置的view
 *  @param aInsets    相对于父view的缩进
 *  @param propert    缩进的优先级
 */
+ (void)setView:(UIView *)aView
fullAsSuperview:(UIView *)aSuperview
  andEdgeInsets:(UIEdgeInsets)aInsets
        propert:(CGFloat)property;

/*  设置view的大小同父view大小
 *
 *  @param aSuperview 父view
 *  @param aView      需要设置的view
 *  @param aInsets    相对于父view的缩进
 *  @param properts   各方向缩进的优先级
 */
+ (void)setView:(UIView *)aView
fullAsSuperview:(UIView *)aSuperview
  andEdgeInsets:(UIEdgeInsets)aInsets
      propertys:(UIEdgeInsets)propertys;

/**
 *  aViews等分aSuperview的宽或者高
 *
 *  @param aViews NSArray
 *  @param aSuperview UIView
 *  @param isHorizontal BOOL
 */
+ (void)setViews:(NSArray *)aViews
equalToSuperview:(UIView *)aSuperview
    isHorizontal:(BOOL)isHorizontal;

@end
